/* reverse a series of numbers */

#include <stdio.h>

#define N 10

int main(void)
{
    int a[N], i;

    printf("enter %d numbers: \n", N);

    for(i = 0; i<N; i++)
        scanf("%d", &a[i]);
    
    printf("in reverse order: \n");
    for(i = N-1; i>=0; i--)
        printf("%d ", a[i]);
    
    printf("\n");

    return 0;
    
}